package com.ap.core.domain;

import javax.persistence.AttributeOverride;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.annotations.TypeDef;

/**
 * Entity class for Merchant
 */
@Entity
@Table(name = "T_MERCHANT_CATEGORY")
@AttributeOverride(name = "id",column = @Column(name = "CATEGORY_CODE"))
@TypeDef(name = "id", typeClass = String.class)
public class MerchantCategoryCode extends Identifiable<String> {

	private static final long serialVersionUID = -7714284968814978277L;

    @Column(name = "CATEGORY_DESCRIPTION")
    private String categoryDescription;

    private MerchantCategoryCode(){}
    
	public MerchantCategoryCode(String categoryCode, String categoryDescription) {
		super();
		this.id = categoryCode;
		this.categoryDescription = categoryDescription;
	}

	public String getCategoryCode() {
		return id;
	}

	public String getCategoryDescription() {
		return categoryDescription;
	}
    
}